package io.io2;

import java.io.*;

public class PWDemo {
    public static void main(String[] args) throws IOException{

        PrintWriter printWriter = new PrintWriter("yj.txt");
        printWriter.println("yjp");


//        FileOutputStream fileOutputStream = new FileOutputStream("yj.txt");
//        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);
//        BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);
//        bufferedWriter.write("黑风你");
//        bufferedWriter.close();


    }
}
